package io;

import java.io.Serializable;

public class Message implements Serializable{
    private static final long serialVersionUID = 468595621381746031L;
    private Integer id;
    private transient String title;
    private String content;

    public Message() {
    }

    public Message(Integer id, String title, String content) {
        this.id = id;
        this.title = title;
        this.content = content;
    }

    @Override
    public String toString() {
        return "Message{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
